package sanshi.contect.factorymethod;

/**
 * 工厂模式
 */
public class FacMain {
    public static void main(String[] args) {
//        Car car = new Car();
//        car.go();
        Moeable moeable = new Car();
        moeable.go();

        Moeable moeable1 = new Plane();
        moeable1.go();
    }
}
